package asia.redact.bracket.properties.mgmt;

import java.util.regex.Pattern;

/**
 * This implementation uses the local hostname to try to generate a
 * ServerLocale. This class is very specific to my servers - your best bet
 * is to implement ServerLocaleBuilder to get your server name your way
 * 
 * @author Dave
 *
 */
public class DefaultServerLocaleBuilder extends ServerLocaleBuilder {
	
	String pattern;

	public DefaultServerLocaleBuilder() {
		super();
		pattern = "u[dtap]\\-\\w+\\-\\w+\\..+";
	}

	public DefaultServerLocaleBuilder(String pattern) {
		super();
		this.pattern = pattern;
	}

	public ServerLocale findServerLocale() {
		Pattern pat = Pattern.compile(pattern);
		
		return null;
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

}
